package com.learn.springboot.controller.excel;


import java.util.List;

import com.learn.springboot.dao.request.PageQueryRequest;


public interface ExportExcelService<T extends PageQueryRequest> {

    /**
     * 获取总页数
     * @param pageQueryRequest
     * @return
     */
    int getTotalCount(T pageQueryRequest);

    /**
     * 分页查询数据
     * @param pageQueryRequest
     * @param pageSize
     * @return
     */
    List queryData(T pageQueryRequest, int pageSize);
}
